package com.lyk.coursearrange.common.log.service;

import com.lyk.coursearrange.common.core.text.SecurityConstants;
import com.lyk.coursearrange.entity.OperLog;
import com.lyk.coursearrange.service.RemoteLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;

@Service
public class LogService
{
    @Autowired
    private RemoteLogService remoteLogService;

    /**
     * 保存系统日志记录
     */
    @Async
    public void saveLog(OperLog operLog)
    {
        remoteLogService.saveLog(operLog, SecurityConstants.INNER);
    }
}
